/**
 * 
 */
package com.nervytech.tutorcruise.db.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nervytech.tutorcruise.db.dao.interfaces.ICourseRequestsDAO;
import com.nervytech.tutorcruise.db.dao.model.CourseRequests;
import com.nervytech.tutorcruise.db.service.interfaces.ICourseRequestsService;
import com.nervytech.tutorcruise.service.exception.TrainerCruiseServiceException;

/**
 * @author ADMIN
 * 
 */
@Service("courseRequestsService")
public class CourseRequestsService implements ICourseRequestsService {

	@Autowired
	private ICourseRequestsDAO requestDao;

	@Override
	public int getCourseTypeId(String courseTypeName) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void saveCourseRequest(CourseRequests req)
			throws TrainerCruiseServiceException {
		try {
			requestDao.saveCourseRequest(req);
		} catch (Exception e) {
			throw new TrainerCruiseServiceException(e.getMessage());
		}
	}

}
